Changed to php, ready for wordpress