Add -c/--cpu and -m/--mem options, and implemented delay and count arguments