Changed to use a checkbox to initiate simulation