Add check on size during copy