Adding assert for debug