Added multiple useful functions.