Register subroutines with connection handler