I removed lock_once, it was overcomplicating things :)