Fixed duplicate functions and synced variables across classes.