Make monitor define include the main class