Edited to work with ULX