Switched flag from integer to enumerator.

Signed-off-by: Lucas Arnström <lucasarnstrom@gmail.com>