Added final version. Working 100 percent