Added a workaround to cost to reduce timming of query.
Merge branch 'master' of https://github.com/n3phele/core