Added pendantic fixes for all warning levels.