Would have liked to have the code be a bit more readable, but since we're inheriting and can't violate public/private it's ok as-is.