Added definitions for several more functions.