Using Module.function instead of deprecated function