Added convenience method for computation.