Fixed code - realised I used the wrapper object "Long" instead of
primitive "long"