added -v and -delay options