Added checks for enough parameters