$currentExam .= "<tr><td valign='top'>";
     $currentExam .= print_single_button('', null, 'Exam Part II: Implementation!', 'get', '', true, '', true);
     $currentExam .= "</td><td>";
     //$currentExam .= "<br/>";
     $currentExam .= showImplementation($record, $exam_length, true);
     $currentExam .= "</td></tr>";
     $currentExam .= "</table>";
     // End Structure
     $currentExam .= print_container_end(true);
     //$currentExam .= "<div id='info_$record->id'></div><br/>";
     $currentExam .= "<hr/>";
 } else {
     if ($now >= $starttime && $now <= $endtime) {
         //Exam has Started
         // Check if Quiz Context exists, if not get Random Context
         checkContext($record, $course);
         $currentExam .= print_container_start(false, '', '', true);
         // Page Structure
         $currentExam .= "<table border='0' cellpadding='5' cellspacing='5'>";
         $currentExam .= "<tr><td valign='top' colspan='2'>";
         $currentExam .= displayInfo($record, $exam_length, true);
         $currentExam .= "</td></tr>";
         /*
         echo  "<tr><td colspan='2'>";
         
         // Print Status
         if($now >= $starttime + ($exam_length * 60)){
             //echo "Exam is Over - Exam Part II: Implementation! Available <br/>";
             examStatus($record,array(5),$exam_length);
         }else{
             // Starttime to + 30 mins
        $admin = true;
    }
}
// display UI
if ($param->view && $param->eid) {
    // Redundant
    if (record_exists('quiz_course_activation', 'id', $param->eid)) {
        // Set QCA Object
        $qca = get_record('quiz_course_activation', 'id', $param->eid);
        if ($param->courseid == $qca->courseid) {
            // Set Course Object
            $course = get_record('course', 'id', $qca->courseid);
            $options = array('courseid' => $course->id);
            $url = "{$CFG->wwwroot}/question/view_instructions.php";
            // Check if Context Exist
            checkContext($qca, $course);
            // Reset $qca - Incase changes where made from checkContext()
            $qca = get_record('quiz_course_activation', 'id', $param->eid);
            // Set Exam Context
            if ($qca->exam_context != NULL) {
                $eqc = get_record('exam_quiz_context', 'id', $qca->exam_context);
            } else {
                //redirect("$CFG->wwwroot/index.php");
                close_this_window();
            }
            if ($admin) {
                $student = get_record('quiz_course_activation', 'exam_context', $eqc->id);
                if (!empty($student)) {
                    echo "<b>Instructions for:</b> {$student->username}<br/>";
                }
            }