Added postAttendance functionality