Git stuff.
Removed unused Imports.
Tweaked command checking.