Thanks to Yamil for his help!