Separated console and simulation code