Made working code.