Converting code to old syntax