Added code for minimum score