Played with condition. Not perfect