Commented out some sections because it might be causing an exception.