Started working on calculating functionality.