Add return value to get flags