TFW you spend most of the afternoon trying to get something to work, only to realize that what you're going isn't even close to what you should be doing (and it works when you change things to how it should work).