Same as above, parse sources should be refactored into its own function.