More convenient API. (it's really sick to pass dict as argument)