Modified to be usable directly within tab bar controllers