Define necessary methods instead of method_missing.