Sensex Gains 500 Points