Added logging for status