Refactored code: now formatting and naming is consistent: camelCase is for external APIs and underscore_names are for my code.