Bugfix, amount need not to be defined beforehand