Switch statement implemented, Sleep sorted