Changed warning levels to error/warning