Why are the functions declared here? Why not directly in USwitch?