Fixing the send function to get timing to work