Replaced deprecated calls since EE version 2.6