Implemented fdm init subroutine.