Added invoke function