Added a new useful function.