Implement clear memory feature to step memory