Culled some code.