Incorporated adaptation to user performance from libanius-core.