Update persitant update function and animation fixes.
Start of layer system.