Replace blocks of spaces with tabs, no change in logic
Add sleep to logic when invalid RPC received to discourage attacks