Improve logging speed and create test handle directory earlier
Refactor API to be consistent