Removed most of the unported code.