Changed fb conversion code