Reimplemented two functions, they may be useful in the future