Only execute commands one at a time, using a lock