Fixing local method for 3.3 compatibility.