Added first implementation of decision making