Using internal memory

Changed function calls to read their values from internal memory which
I'll set from the portal?