YAY! I found a better way to do this