Restored old function signature for sanity.
Fixed desync due to uninitialized objects. Added some logging. RMG maps don't work yet, though.