Creating a native plugin