Changed example code to current syntax