Added bar signing and tests