Move Callbacks Out of Main() for Tidyness