Reworked based on the feedback (https://github.com/Moncader/SWFCrew/pull/61)