Added threading and base number conversion.