Some variable and function names changed