Added activity adjustment

Fixed some minor syntactical issues and added activity adjustment, if
applicable.