Program switches between check modes correctly