Reverting to previous code