Added condition if name is a function in moloDefine
Added abort condition in moloDefine