OK I'll revert back to the phpish way of doing it p;