Added Perloku file (for production).
Added additional error handling.