Got to love functional programming... 30 minutes spent writing 2 lines