Re-added some FUNCTION-related code, fixed glitches with fuel tanks