Removes dependency on Flex