Renamed function and variables to match the coding guidelines