Attempt at support for 18 buttons