Updated my code and made it work with the FSO