Add in new code

Add in the new code for the new functions in the monadic function. I should probably just make a second monadic function