Fixed layout, added parametized reward