Modularize code a bit and add LED preliminary bank support