Converted station keeper tester into a function. Need to test.