Should use copy constructor here. This was causing funky behavior on macs.