Add check for platform