Clean up. This was copied from another source