Added comments and inputted math for process.