Move logic to /lib