Implement dynamic method to handle signals