Setting up pets processing functions