Removed gthread_init as it was not needed anymore