Fixed misspelt function names and variables for compatibility threshold