Fixed clock replacement OOB, added print statements so buffer state can be monitored as it changes