Decoded reference type and moved code to separate functions