Basic working code.