Add sleep command; fix #306