Removing extra printfs