Using getinfo instead of getbalance to check if online because it won't get slower over time