Added error codes and dirs source.