Added waist chain. Added weight to optimization