Added a can_send function and used these higher level can functions in main