Tested the functions, they work, just need to add validators to stop program crashing when bad data is added.