Small refactoring

Use tabs instead of spaces
Don't use new Flow if Flow already using
Don't wrap an anonymous function