Working on JNMF optimization code.