Fixed up some issues due to changes in Cowboy