added delay option