System middleware for the command module