Made int threads static and changed print time