Coding done for FMM, debugging