Moved platform specifics to separate class.