Adithya Hegde

Results 2 issues of Adithya Hegde

Closes #2435 Possibly needs to be refactored to make the code more elegant? For now, I've stuck to the same format as that of the add function.