Cleaned code and got working