Fixing issues with beat function call output