Modified processor.cpp