New function. Not delete in/out places.