Fixed compatibility with furnaces. Fixed some bugs