Added repetetive paste invocation.
Plus fixed minor issues