added a 'delay' option