Improved support for library webapi methods.