Ugly check balance functionality