Made changing layers incremental
Adding comments
Null Reference Exception