Moved compat to top of file.