Make things much more robust. Also, this is going to become a ruby thing really quickly.