Fixed NPE, made changes to show status on the console.