Bringing code up to Google's R Style Guide standards.