Move warning_message() to separate unit