Applying variable to the right place.