Converting the logic back to what it was previously.