Update update functions completely

Broke OS while writing first update function.