Took out console log
Borrowed PS3 variable reading code