Fixed checkins function