Check-in subroutines.php