-Removed wrong logic.