Defining stack and starting goals