Upgraded vm to support method call