Changed return types of some create methods. (fixes #411)