Moved the properties object to the top of file

For ease of use.