Shell code cleanup.