Added guard to the application for quicker testing.