This simpler way seems to work much better, so I'm making it formal