Added online status functionality