Production version with comments and documentation