Added block handling when copying object.