Fixes and added cost field for category