Removed r port and dependencies from ROM