Made two params optional for update.