Analysis code done