Don't pop arrays at %#endif; it doesn't accomplish anything.