Should now work no matter how many times you restart the activity
Removed unused variable