Added totalsubjects attribute