Fix timeout function being referenced but not called