Fixed logging error. Allowed changing problem type without needing to recompile.