I would extract sleeping to a private method.