Effort made on centralization of error treatment and code modularity