Fixed use of deprecated 'create' functions.