Reverted back to GLM1 and fixed some bugs in import