Additional code for the Calculate job