Fixed reminder function, now just need to set up good tests to test it.