added max-memory and max-time option to run command