Delay implemented; tested with delay