Changed drawMain variables to local