Fixed all the bugs. Working 100% fine