Fixing order dependent requires.
Adding https for extra security.