Adding FileHandle functions and finalizing plugin