Move code to earlier point
Merge pull request #137 from skywave/ansi

Move code to earlier point