Use curl instead of wget
Move configuration to a separate file