Add function to compare prefixes.
Begin to switch to platforms.