Make head selector configurable as param and var, rewrite and expand comments to better explain how the hack works.