Only display warning message when function is actually being used