Changing to layer system #3. (add layer function)