Add publicPath method.