Added UID creation for IM and BEAM