Comment out switch statments, uncomment print_r for testing