Using bind when creating a global variable will use the local variables within the function.