Cross platform API.