Convert Stat into a service and update bin/swift