Need to fix seg fault.