Added heating control and lua script fixes: