Removed printstacktrace statement