Removing blocking function (to test with threading ?)