Changed to support SP compilation.