Figured out a better way to do what the last commit did.