Switched open/close to use new compute function.