Added minor functionality in red  and added default sleep time