Fixed several functions in POTS