Tried to smoothen out animations