Some helper functions added.