Fixed method signature to match JS-file