Added beta layer control structures (just if)
Added gamma layer control structures, just cond