Fixed posture bug and renamed local vars to not have _ postfix