Made methods static, so they can be imported as static extensions.