Changed to V and space rather than R using for swithcing