Changed #ifdef to #if