Added useful functions Rogier