That p shouldn't be there.
Cleaned up code to make it a bit more readable.