Removed redundant logging processes, introduced polymorphism.