Made sleep import optional