This commit fixes warnings like: Passing the keyword argument as the last hash parameter is deprecated