Added system logging