Various functions added.