Implemented recon() function.