Updated version 5 of the core to NSB Beta 2 and fixed code to suit the new api changes.