Added some missing functions.