Added conditional compilation.