Newest version with some more work on portals.

Still not working though