Removed some unnecessary edit code