Added cost functions and roads