Using Ruby's sleep function