Created a semi-functional leg-map directive