How to make these variables accessible?