Added code to include the information I need
Fixed problem when there is no profile