Adding acceptRequest handler