Customized for jfroom use.