Added action function support, loading animation