Might be a good idea to actually add these in a separate utils file.