Support for mobfcooking and fixes.

Credit to Xanthin.