Added code to getcval when level is 2. TODO completed