Changed to use full path names
Missed the initializeState function earlier, redid it now