Finished code for Mayday!Mayday!