Limiting number of commands per stack