Adjusting variable declarations in SnackAPI