Fix: Changed profile id type from int to long.
Minor style changes.