Finally got next bus API working