Wrapping up calculations