Nicely changed. Good logic here !