Adding some support for use with navigation bars.