Ansi simplification

@alloy What do you think of this?