Removed unnecessary variables. Everything works give or take the Amazon connection