Removed msleep in favor of nsleep