Trying to test the function to see if it is being called prematurely