Improved initialize functions.