Make timeout-action an enum instead of using several booleans