CoM variables: move boost to seperate function, hopefully fix FPE