Added addFunctionByString and added the extension in addShare.