First working version + simple logging + simple errors