Added functions to interface with application layer