Acquire and release functions ready for ci