Added use of openlog