The custom function has been moved to beginning (the code should use it and not the native)