Added commandRouter to handle different commands