function claimTokens() public whenNotPaused activeTokenExchange {
    TokenExchange storage tokenExchange = tokenExchanges[activeTokenExchanges[msg.sender]];
    uint amountBBY = tokenExchange.amountBBY;

    
    
    require(block.timestamp >= tokenExchange.releasedAt, "not past locking period");

    
    babyloniaTokensLocked = SafeMath.sub(babyloniaTokensLocked, tokenExchange.amountBBY);

    
    delete tokenExchanges[activeTokenExchanges[msg.sender]];
    delete activeTokenExchanges[msg.sender];

    
    babyloniaToken.safeTransfer(msg.sender, amountBBY);

    emit TokenExchangeReleased(msg.sender);
  }