This doesn't look right to me. Shouldn't it just be $options['delay'] = ...?