Added basic client-side prediction.