Trying to put custom object in singleton, but think there might be something wrong.