Should use 2 spaces for indentation, not 4. There's also a tab in here.
(Haven't checked the actual logic here)