Code done for IEEE 2013 Hackathon.