Added ifndef to fix redefiniton error