[WIP] AutomateButtons

PR in progress
Indent not multiple of four.