Moved function FMAKUNBOUND and adapted it to new environment protocol.