Added total number of possibilities. Needs testing, feedback and improvements.