Helps to call the right code.