Use more 'new' methods instead of directly initializing structs.