Frantic frog function