Added delay() feature