added warning about a 'delay()' in the code