Pressure function added