Made all code easy to port.