Allow setting a custom threads value
Fix gem source