Added atiq's code.