Merged Arben's code to LREinit structure