All neccessary variables included and sent to the statediagram class