Added helper methods
Finalized computation