Fix constraining code
Add base pressure