Renamed some variables, added extra function for blog post