#Login to access plus
	nav.bypassLogin('student_id','student_pass', '0001soQW4_NsnMLgyDhE4-RQDsP:14a0b94d8')
	nav.gotoClassRegistration('ran_num')



	#check the status of the current schedule
	baseSchedule = manager.checkCurrentSchedule()
	rank = manager.getScheduleRank(baseSchedule, schedules)

	#if it is already at it's best then we can leave
	if rank == 0:
		print "Schedule is complete!"

		if heartbeat:
			notify.notifyHeartBeat("Schedule is complete, suggest terminating program")
			notify.sendEmail(recipient)

		browser.close()

	#look for possibly available Schedules
	else:
		print "Current schedule is of rank " + str(rank)

		courseAvailability = []

		#check the availability of every class in the course list
		for i in range(0,len(courseList.courseList)):
			courseAvailability.append(manager.checkCourseAvailability(courseList.courseList[i],baseSchedule))