Removed race condition in piano