Added check coind online function