Moved init to the top