Basic switching functionality, not the ideal one though