Adding some PHP for more functionality.