Changed code architecture in order to support multiple banks later