Helps to call the correct methods