Simplified code by introducing common base class. Added blame command.