Resolve more case errors and begin to use standard libs.