Optimized remote class
Remote class is now static
Function is now public