Adding the bucket fill implementation.