Added useful functions